var models = require('../../db/models')
var server = require('../server')
var db = require('../../db/connect')
var encrypt = require('../../libs/encrypt')
var jsonres = require('../../libs/jsonres')

server.get('/api/allsync',function(req,res) {
    var m = req.session.u
    db.find('tasks',{mobile: m},function(err,result) {
        if (!!!err) {
            res.send(jsonres(200,'success',result))
        } else {
            res.send(jsonres(-1,'查询失败',err))
        }
    })
})
